package tech.runchen.gz5055.oms.common.utils.redis.delay;

import lombok.Data;
import tech.runchen.gz5055.oms.common.constant.Constant;

/**
 * @author zzj
 */
@Data
public abstract class AbstractRedisDelayTask implements RedisDelayTask {

    protected String id;
    protected String value;
    private long delayTime;

    @Override
    public String getId() {
        return Constant.TASK_ID_KEY + id;
    }

    public AbstractRedisDelayTask(String id, String value, long delayTime) {
        this.id = id;
        this.value = value;
        this.delayTime = delayTime;
    }

}
